package com.bricker.laboratorymanagement.business.service.Impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bricker.laboratorymanagement.business.dao.SysClassMapper;
import com.bricker.laboratorymanagement.business.entity.SysClass;
import com.bricker.laboratorymanagement.business.service.SysClassService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysClassServiceImpl extends ServiceImpl<SysClassMapper, SysClass> implements SysClassService {
    @Override
    public List<SysClass> getClassesByTid(Long tid, Integer grade) {
        List<SysClass> sysClasses=super.list(Wrappers.<SysClass>lambdaQuery()
                                .eq(SysClass::getTieId,tid)
                                .eq(SysClass::getDelFlag,"0"));
        return sysClasses;
    }
}
